<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.company.project.common.ErrorBean"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
	<head>
		<base href="<%=basePath%>" />
		<title>Insert title here</title>
		<link href="css/validate.css" rel="stylesheet" type="text/css" />
		<link href="css/common.css" rel="stylesheet" type="text/css" />

	</head>
	<body>
		<div id="man_zone">
			<div class="navbar">
				系统提示
			</div>		
			<div class="toolbar">
	
			</div>
			 <s:if test="#request.errorBean == null">
				<div width="100%" align="center" style="position:relative; top:40%">
					<span>对不起，您的操作失败。</span>
					<input type="button" value="确定" class="button_60" onMouseOver="this.className='button_60_over'" onMouseOut="this.className='button_60'" onclick="javascript:history.go(-1)"/>				
				</div>
			</s:if>
			<s:else>
				<s:if test="#request.errorBean.errorMsg == '' && #request.errorBean.action == ''">
					<div width="100%" align="center" style="position:relative; top:40%">
						<span>对不起，您的操作失败。</span>
						<input type="button" value="确定" class="button_60" onMouseOver="this.className='button_60_over'" onMouseOut="this.className='button_60'" onclick="javascript:history.go(-1)"/>				
					</div>
				</s:if>
				<s:elseif test="#request.errorBean.errorMsg == '' && #request.errorBean.action != ''">
					<div width="100%" align="center" style="position:relative; top:40%">
						<span>对不起，您的操作失败。</span>
						<input type="button" value="确定" class="button_60" onMouseOver="this.className='button_60_over'" onMouseOut="this.className='button_60'" onclick="doForward()"/>				
					</div>				
				</s:elseif>
				<s:elseif test="#request.errorBean.errorMsg != '' && #request.errorBean.action == ''">
					<div width="100%" align="center" style="position:relative; top:40%">
						<span><s:property value="#request.errorBean.errorMsg" /></span>
						<input type="button" value="确定" class="button_60" onMouseOver="this.className='button_60_over'" onMouseOut="this.className='button_60'" onclick="javascript:history.go(-1)"/>				
					</div>				
				</s:elseif>
				<s:elseif test="#request.errorBean.errorMsg != '' && #request.errorBean.action != ''">
					<div width="100%" align="center" style="position:relative; top:40%">
						<span><s:property value="#request.errorBean.errorMsg" /></span>
						<input type="button" value="确定" class="button_60" onMouseOver="this.className='button_60_over'" onMouseOut="this.className='button_60'" onclick="doForward()"/>				
					</div>				
				</s:elseif>
			</s:else>
		</div>	
	</body>
	<script language="javascript">
	function doForward()
	{
		window.location.href="<s:property value='#request.errorBean.action'/>";
	}
	</script>
</html>